package com.company.cloud.base.modules.api.service;

import com.company.cloud.base.modules.api.models.BizCodeModel;
import com.company.cloud.common.bean.BaseClientResult;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;

import com.company.cloud.base.modules.api.fallback.BaseClientServiceFallbackFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId="base", name = ServiceNameConstant.basic_center, fallbackFactory = BaseClientServiceFallbackFactory.class )
public interface BaseClientService {

    @RequestMapping(value = "/remote/base/bizCode/get", method = RequestMethod.POST)
    public BaseClientResult<BizCodeModel> getBizCode(@RequestBody BizCodeModel param);

    @RequestMapping(value = "/remote/base/bizCode/update", method = RequestMethod.POST)
    public BaseClientResult<String> updateBizCode(@RequestBody BizCodeModel param);

    /** 参数信息 */
    @RequestMapping(value = "/remote/base/getParaVal", method = RequestMethod.GET)
    public BaseClientResult<String> getParaVal(@RequestParam("paraKey") String paraKey);

}
